(()=>{"use strict";var e,t={69748:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createGraph=function(e,t,r,n,l,i,u){var c=p[e],f=o.init(document.querySelector(t),null,{locale:d("Scr1wCTFdLanguage")});f.setOption(c.format(n,l,i,u,r)),(0,a.default)(window).on("resize",(function(){null!=f&&null!=f&&f.resize()}))},t.disposeGraph=function(e){o.dispose(document.querySelector(e))},t.updateGraph=function(e,t,r,n,a,l,i){var u=p[e];o.init(document.querySelector(t),null,{locale:d("Scr1wCTFdLanguage")}).setOption(u.format(n,a,l,i,r))};var a=c(r(54437)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=o?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(62780)),l=c(r(85846));r(5211),r(95229);var i=r(37507);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e){var t,r,n,a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){i=!0,o=e},f:function(){try{l||null==r.return||r.return()}finally{if(i)throw o}}}}(document.cookie.split("; "));try{for(a.s();!(t=a.n()).done;){var o=(r=t.value.split("="),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,l,i=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(r,n)||f(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=o[0],i=o[1];if(l===e)return decodeURIComponent(i)}}catch(e){a.e(e)}finally{a.f()}return"zh"}var p={score_graph:{format:function(e,t,r,n,a){var o={title:{left:"center",text:"en"===d("Scr1wCTFdLanguage")?"Score over Time":"得分曲线"},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},legend:{type:"scroll",orient:"horizontal",align:"left",bottom:0,data:[r]},toolbox:{feature:{saveAsImage:{}}},grid:{containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:[]}],yAxis:[{type:"value"}],dataZoom:[{id:"dataZoomX",type:"slider",xAxisIndex:[0],filterMode:"filter",height:20,top:35,fillerColor:"rgba(233, 236, 241, 0.4)"}],series:[]},u=[],c=[],f=a[0].data,s=a[2].data,p=f.concat(s);p.sort((function(e,t){return new Date(e.date)-new Date(t.date)}));for(var h=0;h<p.length;h++){var y=(0,l.default)(p[h].date);u.push(y.toDate());try{c.push(p[h].challenge.value)}catch(e){c.push(p[h].value)}}return u.forEach((function(e){o.xAxis[0].data.push(e)})),o.series.push({name:window.stats_data.name,type:"line",label:{normal:{show:!0,position:"top"}},areaStyle:{normal:{color:(0,i.colorHash)(r+t)}},itemStyle:{normal:{color:(0,i.colorHash)(r+t)}},data:(0,i.cumulativeSum)(c)}),o}},category_breakdown:{format:function(e,t,r,n,a){for(var o={title:{left:"center",text:"en"===d("Scr1wCTFdLanguage")?"Category Breakdown":"类别细分"},tooltip:{trigger:"item"},toolbox:{show:!0,feature:{saveAsImage:{}}},legend:{type:"scroll",orient:"vertical",top:"middle",right:0,data:[]},series:[{name:"en"===d("Scr1wCTFdLanguage")?"Category Breakdown":"类别细分",type:"pie",radius:["30%","50%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},itemStyle:{normal:{label:{show:!0,formatter:function(e){return"".concat(e.percent,"% (").concat(e.value,")")}},labelLine:{show:!0}},emphasis:{label:{show:!0,position:"center",textStyle:{fontSize:"14",fontWeight:"normal"}}}},emphasis:{label:{show:!0,fontSize:"30",fontWeight:"bold"}},labelLine:{show:!1},data:[]}]},l=a[0].data,u=[],c=0;c<l.length;c++)u.push(l[c].challenge.category);for(var f=u.filter((function(e,t){return u.indexOf(e)==t})),s=[],p=0;p<f.length;p++){for(var h=0,y=0;y<u.length;y++)u[y]==f[p]&&h++;s.push(h)}return f.forEach((function(e,t){o.legend.data.push(e),o.series[0].data.push({value:s[t],name:e,itemStyle:{color:(0,i.colorHash)(e)}})})),o}},solve_percentages:{format:function(e,t,r,n,a){var o=a[0].data.length,l=a[1].meta.count;return{title:{left:"center",text:"en"===d("Scr1wCTFdLanguage")?"Solve Percentages":"解出比例"},tooltip:{trigger:"item"},toolbox:{show:!0,feature:{saveAsImage:{}}},legend:{orient:"vertical",top:"middle",right:0,data:["Fails","Solves"]},series:[{name:"en"===d("Scr1wCTFdLanguage")?"Solve Percentages":"提交比例",type:"pie",radius:["30%","50%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},itemStyle:{normal:{label:{show:!0,formatter:function(e){return"".concat(e.name," - ").concat(e.value," (").concat(e.percent,"%)")}},labelLine:{show:!0}},emphasis:{label:{show:!0,position:"center",textStyle:{fontSize:"14",fontWeight:"normal"}}}},emphasis:{label:{show:!0,fontSize:"30",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:l,name:"en"===d("Scr1wCTFdLanguage")?"Fails":"错误提交",itemStyle:{color:"rgb(207, 38, 0)"}},{value:o,name:"en"===d("Scr1wCTFdLanguage")?"Solves":"正确提交",itemStyle:{color:"rgb(0, 209, 64)"}}]}]}}}}},59665:(e,t,r)=>{var n=h(r(91165)),a=h(r(54437)),o=h(r(85846));r(5211),r(95229);var l=h(r(53009)),i=h(r(90926)),u=r(86106),c=h(r(83486)),f=h(r(18959)),s=h(r(14791)),d=h(r(27792)),p=h(r(94412));function h(e){return e&&e.__esModule?e:{default:e}}o.default.extend(l.default),n.default.init(window.init),window.CTFd=n.default,window.helpers=p.default,window.$=a.default,window.dayjs=o.default,window.nunjucks=i.default,window.Howl=u.Howl,(0,a.default)((function(){(0,s.default)(),(0,d.default)(),(0,c.default)(f.default.urlRoot)}))},63311:(e,t,r)=>{r(59665);var n=l(r(54437)),a=l(r(91165)),o=r(69748);function l(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,l,i=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c={team:[function(e){return a.default.api.get_team_solves({teamId:e})},function(e){return a.default.api.get_team_fails({teamId:e})},function(e){return a.default.api.get_team_awards({teamId:e})}],user:[function(e){return a.default.api.get_user_solves({userId:e})},function(e){return a.default.api.get_user_fails({userId:e})},function(e){return a.default.api.get_user_awards({userId:e})}]};(0,n.default)((function(){var e,t,r,n,a=window.stats_data;e=a.type,t=a.id,r=a.name,n=a.account_id,function(e,t,r,n){var a=i(c[e],3),l=a[0],u=a[1],f=a[2];Promise.all([l(n),u(n),f(n)]).then((function(a){(0,o.createGraph)("score_graph","#score-graph",a,e,t,r,n),(0,o.createGraph)("category_breakdown","#categories-pie-graph",a,e,t,r,n),(0,o.createGraph)("solve_percentages","#keys-pie-graph",a,e,t,r,n)}))}(e,t,r,n),setInterval((function(){!function(e,t,r,n){var a=i(c[e],3),l=a[0],u=a[1],f=a[2];Promise.all([l(n),u(n),f(n)]).then((function(a){(0,o.updateGraph)("score_graph","#score-graph",a,e,t,r,n),(0,o.updateGraph)("category_breakdown","#categories-pie-graph",a,e,t,r,n),(0,o.updateGraph)("solve_percentages","#keys-pie-graph",a,e,t,r,n)}))}(e,t,r,n)}),3e5)}))}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return t[e](o,o.exports,n),o.loaded=!0,o.exports}n.m=t,e=[],n.O=(t,r,a,o)=>{if(!r){var l=1/0;for(f=0;f<e.length;f++){for(var[r,a,o]=e[f],i=!0,u=0;u<r.length;u++)(!1&o||l>=o)&&Object.keys(n.O).every((e=>n.O[e](r[u])))?r.splice(u--,1):(i=!1,o<l&&(l=o));if(i){e.splice(f--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var f=e.length;f>0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,a,o]},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={368:0,671:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,[l,i,u]=r,c=0;if(l.some((t=>0!==e[t]))){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(u)var f=u(n)}for(t&&t(r);c<l.length;c++)o=l[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(f)},r=self.webpackChunkctfd=self.webpackChunkctfd||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=n.O(void 0,[759,736,353],(()=>n(63311)));a=n.O(a)})();